﻿var status = 0;
var eff1 = "#fUI/UIPVP.img/MiniMapIcon/star#";
var ttt = "#fUI/UIPVP.img/MiniMapIcon/star#"; //"+ttt+"//美化1
var eff = "#fUI/UIWindow2.img/AttackRangking/1#"; //小皇冠
var ttt = "#fUI/UIPVP.img/MiniMapIcon/star#"; //小黄心
var 头顶 = "#fItem/Cash/0501.img/05010002/effect/default/7#";
var tz12 = "#fEffect/CharacterEff/1112924/0/0#"; //黄星
var tz13 = "#fEffect/CharacterEff/1112925/0/0#"; //蓝星
var tz14 = "#fEffect/CharacterEff/1112926/0/0#"; //红星
var 横条 = "#fEffect/SetEff.img/64/backgrnd/20"; //雪人
var us = "#fUI/CashShop.img/CSDiscount/bonus#"; //小黄心
var ums = "#fUI/UIWindowPL.img/GodOfBrain/npcAni3/stand/0#"; //小黄心
var F123 = "#fMob/2400204.img/move/4#"; //迷你女皇
var IconA = "#fUI/UIWindow.img/Minigame/Common/mark#"; //红心

var IconB = "#fEffect/CharacterEff/1112904/0/0#"; //彩心
var IconC = "#fEffect/CharacterEff/1112924/0/0#"; //黄星
var IconD = "#fEffect/CharacterEff/1112925/0/0#"; //蓝星
var IconE = "#fEffect/CharacterEff/1112926/0/0#"; //红星
var IconF = "#fUI/RunnerGame.img/RunnerGameUI/UI/Point/2#"
	var 账户 = "#fUI/StatusBar3.img/FadeYesNo/icon5#"; //"+ttt+"//美化1
var 赞助 = "#fUI/StatusBar3.img/FadeYesNo/icon6#"; //"+ttt+"//美化1
var 点卷 = "#fUI/CashShop.img/CashItem/0#"; //"+ttt+"//美化1
var 抵用 = "#fUI/CashShop.img/CashItem_label/0#"; //"+ttt+"//美化1
var 活跃 = "#fUI/CashShop.img/CashItem_label/2#"; //"+ttt+"//美化1
var 积分 = "#fUI/CashShop.img/CashItem_label/3#"; //"+ttt+"//美化1
var PK = "#fUI/CashShop.img/CashItem_label/1#"; //"+ttt+"//美化1

var BNQ1 = "#fitem/03801285/info/icon#"; //女玩家
var cal = java.util.Calendar.getInstance();
var hour = cal.get(java.util.Calendar.HOUR_OF_DAY); //小时显示
var min = cal.get(java.util.Calendar.MINUTE); //分钟显示
var sec = cal.get(java.util.Calendar.SECOND); //秒钟显示
var nowtiem = hour + "时" + min + "分" + sec + "秒";

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (status == 0 && mode == 0) {
		cm.dispose();
		return;
	}
	if (mode == 1) {
		status++;
	} else {
		status--;
	}
	if (cm.getMapId() == 180000001 || cm.getMapId() == 910340000) {
		cm.sendOk("很遗憾，您因为在特殊地图无法使用此功能.")
		cm.dispose();
	} else if (status == 0) {
		var selStr = " #e#rPPMS特殊服务处\r\n\#e#k 我可以为您提供以下服务哟#n\r\n";
		selStr += "#L0#" + tz14 + " #e#b我想一键开放背包 #n#d(背包不够用?点击此处!)#l\r\n\r\n";
		selStr += "#L1#" + tz14 + " #e#b血蓝不够用请点击 #n#d(不再为血量＆蓝量担忧)#l\r\n\r\n";
		cm.sendSimple(selStr);
	} else if (status == 1) {
		switch (selection) {
		case 0:
			cm.dispose();
			cm.openNpc(9209000, "扩展背包"); 
			break;
		case 1:
			cm.dispose();
			cm.openNpc(9310112, "hpmplist");
			break;

		}
	}
}
